package main

import (
	"fmt"
	"github.com/gorilla/websocket"
	"net/http"
)

func main() {
	dial, _, err := websocket.DefaultDialer.Dial("ws://localhost:20205/api/gis/ws", http.Header{})
	if err != nil {
		panic(err)
	}

	for {
		_, p, err := dial.ReadMessage()
		if err != nil {
			panic(err)
		}

		fmt.Println(string(p))
	}
}
